:root { --t: 0.4s cubic-bezier(0.4, 0, 0.2, 1); }

[data-theme="dark"] {
  --bg:     #0a0a0a;
  --bg2:    #141414;
  --text:   #f0ede8;
  --muted:  #555;
  --accent: #e8a020;
  --adim:   rgba(232,160,32,0.1);
  --border: rgba(240,237,232,0.08);
  --glow:   rgba(232,160,32,0.35);
  --card:   rgba(20,20,20,0.95);
}

[data-theme="light"] {
  --bg:     #f5f2ed;
  --bg2:    #ebe7e0;
  --text:   #111;
  --muted:  #999;
  --accent: #c47d0e;
  --adim:   rgba(196,125,14,0.08);
  --border: rgba(17,17,17,0.1);
  --glow:   rgba(196,125,14,0.25);
  --card:   rgba(255,255,255,0.9);
}

[data-theme="neon"] {
  --bg:     #030308;
  --bg2:    #080812;
  --text:   #d4ffd8;
  --muted:  #3a7a42;
  --accent: #00ff66;
  --adim:   rgba(0,255,102,0.07);
  --border: rgba(0,255,102,0.1);
  --glow:   rgba(0,255,102,0.4);
  --card:   rgba(8,8,18,0.97);
}

[data-theme="red"] {
  --bg:     #111;
  --bg2:    #1c1c1c;
  --text:   #fff;
  --muted:  #666;
  --accent: #e31c1c;
  --adim:   rgba(227,28,28,0.08);
  --border: rgba(255,255,255,0.07);
  --glow:   rgba(227,28,28,0.4);
  --card:   rgba(28,28,28,0.97);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background var(--t), color var(--t);
  cursor: none;
}

.accent { color: var(--accent); transition: color var(--t); }

a, button { cursor: none; }

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition: opacity 0.2s;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--text);
  transition: background var(--t), transform 0.1s;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid var(--muted);
  mix-blend-mode: difference;
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

body.hovering .cursor-ring {
  width: 52px;
  height: 52px;
  border-color: var(--accent);
}

body.hovering .cursor-dot {
  transform: translate(-50%, -50%) scale(0);
}

.boot {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.boot.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-name {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8a020;
}

.boot-bar {
  width: 120px;
  height: 1px;
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
}

.boot-progress {
  height: 100%;
  width: 0;
  background: #e8a020;
  animation: progress 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.05s;
}

@keyframes progress { to { width: 100%; } }

.theme-switcher {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px;
  backdrop-filter: blur(20px);
  transition: background var(--t), border-color var(--t);
}

.t-btn {
  background: none;
  border: none;
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 2px;
  transition: all 0.2s;
}

.t-btn:hover { color: var(--text); }

.t-btn.active {
  background: var(--accent);
  color: #fff;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 48px 44px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 15% 85%, transparent 25%, black 75%);
  pointer-events: none;
  transition: background-image var(--t);
}

.hero-top {
  display: flex;
  justify-content: space-between;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  z-index: 1;
  transition: color var(--t);
}

.hero-center {
  position: relative;
  z-index: 1;
  will-change: transform;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-work-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--muted);
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 3px;
  width: fit-content;
  transition: all 0.25s;
}

.hero-work-cta:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 18px;
}

.hero-work-count {
  font-size: 10px;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 6px;
  border-radius: 2px;
  transition: color var(--t), border-color var(--t);
}

.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(88px, 19vw, 210px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: var(--text);
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--t);
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
  align-self: center;
  position: relative;
  overflow: hidden;
  transition: background var(--t);
}

.hero-rule-shine {
  position: absolute;
  top: 0; left: 0;
  width: 60px;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: shine 3s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes shine {
  0%   { transform: translateX(-60px); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(calc(var(--rule-width, 800px) + 60px)); opacity: 0; }
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-role {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color var(--t);
}

.hero-tagline {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  transition: color var(--t);
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'Syne', sans-serif;
  transition: color 0.2s;
  animation: scrollFloat 2.5s ease-in-out infinite;
}

.hero-scroll:hover { color: var(--accent); }

@keyframes scrollFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

.marquee-strip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  transition: border-color var(--t);
}

.marquee-wrapper {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
  will-change: transform;
}

.marquee-track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 28px;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--t);
}

.marquee-track .dot { color: var(--accent); transition: color var(--t); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.work {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 48px;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 56px;
}

.section-num {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  transition: color var(--t);
}

.section-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  transition: color var(--t);
}

.work-list { border-top: 1px solid var(--border); transition: border-color var(--t); }

.work-row {
  border-bottom: 1px solid var(--border);
  transition: background 0.25s, border-color var(--t);
}

.work-row:hover { background: var(--adim); }

.work-row-top {
  display: grid;
  grid-template-columns: 44px 1fr auto auto 44px;
  align-items: center;
  gap: 20px;
  padding: 28px 0;
  cursor: pointer;
}

.work-n {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  transition: color var(--t);
}

.work-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(18px, 2.8vw, 30px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

.work-row:hover .work-title { color: var(--accent); }

.work-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.work-tags span {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 2px;
  transition: all 0.2s;
}

.work-row:hover .work-tags span {
  border-color: var(--accent);
  color: var(--accent);
}

.work-yr {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  transition: color var(--t);
}

.work-plus {
  font-size: 22px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), color 0.2s;
  line-height: 1;
  user-select: none;
}

.work-row.open .work-plus {
  transform: rotate(45deg);
  color: var(--accent);
}

.work-expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4,0,0.2,1);
}

.work-expand-inner { overflow: hidden; }

.work-expand p {
  padding: 0 0 32px 64px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 580px;
  transition: color var(--t);
}

.work-row.open .work-expand { grid-template-rows: 1fr; }

.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--t);
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  transition: color var(--t);
}

.stat-lbl {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--t);
}

.stat-rule {
  width: 1px;
  height: 72px;
  background: var(--border);
  transition: background var(--t);
}

.contact {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 48px 100px;
}

.contact-inner { position: relative; }

.contact-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(56px, 11vw, 130px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--text);
  margin: 14px 0 52px;
  transition: color var(--t);
}

.contact-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 48px;
  transition: background var(--t);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  transition: all 0.25s;
}

.contact-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  gap: 22px;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 48px;
  border-top: 1px solid var(--border);
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: border-color var(--t), color var(--t);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  .hero { padding: 28px 28px 36px; }
  .hero-name { font-size: clamp(68px, 20vw, 120px); }
  .work { padding: 72px 28px; }
  .work-row-top { grid-template-columns: 36px 1fr 36px; gap: 12px; }
  .work-tags, .work-yr { display: none; }
  .work-expand p { padding-left: 48px; }
  .stats { padding: 60px 28px; flex-direction: column; gap: 32px; }
  .stat-rule { width: 60px; height: 1px; }
  .contact { padding: 80px 28px 72px; }
  footer { padding: 20px 28px; flex-direction: column; gap: 8px; text-align: center; }
  .theme-switcher { top: 16px; right: 16px; }
}
